package com.shanjupay.merchant.convert;

import com.shanjupay.merchant.api.dto.MerchantDTO;
import com.shanjupay.merchant.vo.MerchantRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * <h1>应用层对象转换</h1>
 * @author lsy
 * @date 2020/05/08
 */
@Mapper
public interface MerchantRegisterConvert {

    MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);

    // vo 转 dto
    MerchantDTO vo2dto(MerchantRegisterVO vo);

    // dot 转 vo
    MerchantRegisterVO dto2vo(MerchantDTO dto);
}
